package com.hzf.material.dao.model;

import java.io.Serializable;

public class MaterialArea implements Serializable {
    /**
     * 商场区域ID（自增）
     *
     * @mbg.generated
     */
    private Integer marketAreaId;

    /**
     * 商场区域的名称
     *
     * @mbg.generated
     */
    private String marketAreaName;

    /**
     * 图片地址
     *
     * @mbg.generated
     */
    private String imgUrl;

    /**
     * 外键，商场列表ID
     *
     * @mbg.generated
     */
    private Long marketListId;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remarks;
    /*
    * 所在商场名称
    * */
    private String marketListName;




    private static final long serialVersionUID = 1L;

    public Integer getMarketAreaId() {
        return marketAreaId;
    }

    public void setMarketAreaId(Integer marketAreaId) {
        this.marketAreaId = marketAreaId;
    }

    public String getMarketAreaName() {
        return marketAreaName;
    }

    public void setMarketAreaName(String marketAreaName) {
        this.marketAreaName = marketAreaName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Long getMarketListId() {
        return marketListId;
    }

    public void setMarketListId(Long marketListId) {
        this.marketListId = marketListId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getMarketListName() {
        return marketListName;
    }

    public void setMarketListName(String marketListName) {
        this.marketListName = marketListName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", marketAreaId=").append(marketAreaId);
        sb.append(", marketAreaName=").append(marketAreaName);
        sb.append(", imgUrl=").append(imgUrl);
        sb.append(", marketListId=").append(marketListId);
        sb.append(", remarks=").append(remarks);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaterialArea other = (MaterialArea) that;
        return (this.getMarketAreaId() == null ? other.getMarketAreaId() == null : this.getMarketAreaId().equals(other.getMarketAreaId()))
            && (this.getMarketAreaName() == null ? other.getMarketAreaName() == null : this.getMarketAreaName().equals(other.getMarketAreaName()))
            && (this.getImgUrl() == null ? other.getImgUrl() == null : this.getImgUrl().equals(other.getImgUrl()))
            && (this.getMarketListId() == null ? other.getMarketListId() == null : this.getMarketListId().equals(other.getMarketListId()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMarketAreaId() == null) ? 0 : getMarketAreaId().hashCode());
        result = prime * result + ((getMarketAreaName() == null) ? 0 : getMarketAreaName().hashCode());
        result = prime * result + ((getImgUrl() == null) ? 0 : getImgUrl().hashCode());
        result = prime * result + ((getMarketListId() == null) ? 0 : getMarketListId().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        return result;
    }
}